package com.zgh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zgh.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where id = #{id}")
    User findUserById(int id);

    @Select("select * from user where openId = #{openId}")
    User findUserByOpenId(String openId);
}
